//
//  ViewController.m
//  ShareBoard
//
//  Created by Aaron on 2017/7/13.
//  Copyright © 2017年 Zhu jinxin. All rights reserved.
//

#import "ViewController.h"
#import "ShareManager.h"
#import "ShareView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    /*
     *注意添加回调的URL key 否则无法使用canopenURL的api
     *shareView和Manager都是Singleton，manager可以自定义
     */



}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    if ([ShareView sharedShareBoard].isVisible) {
        [[ShareView sharedShareBoard] disappear];
    }else{
        [[ShareManager sharedManager] showShareBoardWithSource:nil PresentController:nil];
    }
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
